import axios from "axios";
axios.defaults.baseURL = `http://127.0.0.1:8002`;
export const getAllGoodsAPI = () => {
  return axios.get("/goods/findGoods");
};
export const addGoodsAPI = (params) => {
  return axios.post("/goods/addGoods", params);
};
export const searchGoodsAPI = (params) => {
  return axios.post("/goods/findGoodsByName", params);
};
